/**
 * @author wn
 * @date 2022/11/10 16:22:21
 * @description: 表单校验规则  不通过返回 true
 */
// 验证油箱
export const CkEmail = data => {
	const reg =
		/^[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*@[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*\.[a-z]{2,}$/
	return !reg.test(data)
}
// 验证密码 6至15位的字母+数字
export const CkPass = data => {
	const reg = /^(?!\D+$)(?![^a-zA-Z]+$)\S{6,15}$/
	return !reg.test(data)
}
